package homework.day318.demo2;

public class Block extends TuXing {
    private double length;
    private double wide;
    public Block() {

    }
    public Block(double length, double wide) {
        super.draw();
        this.length = length;
        this.wide = wide;
    }
    public double area(){
        return length*wide;
    }
    public double getLength() {
        return length;
    }

    public void setLength(double length) {
        this.length = length;
    }

    public double getWide() {
        return wide;
    }

    public void setWide(double wide) {
        this.wide = wide;
    }
}
